package loadsequence;

import java.io.Serializable;

/**
 * @author zhangxin
 * @date 2020/9/22
 */
public class Person implements Serializable {

    protected String protectField;
    public String publicField;

    public Person(){
        System.out.println("Person() ...");

    }

    static {
        System.out.println("Person static block");
    }

    {
        System.out.println("Person common block");
    }

    private String name;

    private static int age;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static int getAge() {
        return age;
    }

    public void setAge(int age) {
        Person.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                "age='" + age + '\'' +
                '}';
    }


    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
